﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.ETL.Domain.TaskProxy
{
    public class TaskRunMode
    {
        public Guid Id { get; set; }

        public Guid TaskId { get; set; }

        public int Mode { get; set; }

        public Nullable<DateTime> TimerBeginTime { get; set; }
        /// <summary>
        /// Timer,Interval
        /// </summary>
        public Nullable<int> TimerInterval { get; set; }

        /// <summary>
        /// Day,Minute,Second
        /// </summary>
        public Nullable<int> TimerIntervalMode { get; set; }

        /// <summary>
        /// alarm, clockmode:PY,PM,PW,PD
        /// </summary>
        public Nullable<int> AlarmMode { get; set; }

        /// <summary>
        /// Alarm,Clock
        /// </summary>
        public Nullable<DateTime> AlarmClock { get; set; }

        /// <summary>
        /// Event,Event
        /// </summary>
        public string EventName { get; set; }

        /// <summary>
        /// 应该执行的时间
        /// </summary>
        public Nullable<DateTime> NextExecuteTime { get; set; }

        /// <summary>
        /// 上次执行的时间
        /// </summary>
        public Nullable<DateTime> LastExecutedTime { get; set; }
    }
}
